package com.epoch.servicecourse.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Configuration;

import javax.validation.constraints.NotBlank;

/**
 * @author mi
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Configuration
public class Chapter {
    private Integer id;
    /**
     * 章节编号
     */
    @NotBlank(message = "章节编号不能为空")
    private String chapterId;
    /**
     * 章节描述
     */
    private String chapterIdIn;
    @NotBlank(message = "章节对应的课程编号不能为空")
    private String courseId;
    private Integer videoId;
    /**
     * 大标题
     */
    private String chapterName;
    /**
     * 小标题
     */
    private String chapterIdInName;
    /**
     * 知识点
     */
    private String point;
    /**
     * 类型
     */
    private Type type;
    /**
     * 老师课程
     */
    private TeacherCourse teacherCourse;
    /**
     * 视频
     */
    private Video video;
}
